driver: net: fsl-mc: Update calculation of MC RAM
authorYork Sun <[email protected]>
Mon, 6 Mar 2017 17:02:29 +0000 (09:02 -0800)
committerYork Sun <[email protected]>
Tue, 14 Mar 2017 15:44:03 +0000 (08:44 -0700)
commit437858b62010f3d67694b117952b62d4be86e976
treeca97df387eb2cb68175b61e7b5972eff38086447
parent36cc0de0b919c0e185739142742e0a76a7c5c30a
driver: net: fsl-mc: Update calculation of MC RAM

Since the reserved RAM is tracked by gd->arch.resv_ram, calculation
of MC memory blocks can be simplified. The MC RAM is guaranteed to be
aligned by the reservation process.

Signed-off-by: York Sun <[email protected]>
CC: Priyanka Jain <[email protected]>
Acked-by: Joe Hershberger <[email protected]>
drivers/net/fsl-mc/mc.c